<?php echo '<?xml version="1.0" encoding="UTF-8"?>'."\n"; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <style>
            table {
                border-spacing: 0px;
            }
            td {
                border: 1px solid #888888;
                padding: 4px;
            }
            th {
                vertical-align: bottom;
            }
            body {
                color: black;
                background-color: #becafe;
                font-family:helvetica,arial,freesans,clean,sans-serif;
                font-size: 13.34px;
            }
            #content {
                background-color: #eeeeee;
                padding: 10px;
                border: 1px solid black;
                margin: auto;
                width: 600px;
            }
            </style>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
        <title>Bible Quiz Registration System</title>
        <?php echo $scripts_for_layout; ?>
    </head>
    <body>
    
        <div id="content">
            <?php if ($session->check('Auth.User.id')): ?>
            <table>
                <tr>
                    <td><?php echo $html->link('Tournament Manager', array('controller'=>'tournaments', 'action'=>'index')); ?></td>
                    <td><?php echo $html->link('Registration Manager', array('controller'=>'registrations', 'action'=>'index')); ?></td>
                    <td><?php echo $html->link('User Manager', array('controller'=>'users', 'action'=>'index')); ?></td>
                    <td><?php echo $html->link('Logout', array('controller'=>'users', 'action'=>'logout')); ?></td>
                </tr>
            </table>
            <?php endif; ?>
            <?php echo $session->flash(); ?>
            <?php echo $content_for_layout; ?>
    </div>
    </body>
</html>
